﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string nameForm = Request.Form["name"];
            string passForm = Request.Form["password"];

            


            string nameQuery = Request.QueryString["n"];
            string passwordQuery = Request.QueryString["password"];
            if (nameForm == null)
            {
                Response.Write($"<h1>Get ==> 欢迎您！{nameQuery} 您的密码是：{passwordQuery}</h1>");
            }
            else
            {
                Response.Write($"<h1>Post ==> 欢迎您！{nameForm} 您的密码是：{passForm}</h1>");
            }




        }
    }
}